﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace showcolat
{
   public class Episode
    {
        public int IDEpisode;
        public string TitreEpisode;
        public string NumEpisode;
        public int IDSaison;
        public int IDSerie;
        public int Duree;
        public string Diffusion;

        public Episode()
        {
            this.IDEpisode = 0;
            this.TitreEpisode = "";
            this.NumEpisode = "0";
            this.IDSaison = 0;
            this.Duree = 0;
            this.IDSerie = 0;
            this.Diffusion = "";
        }

        public Episode(int IDEpisode = 0, string TitreEpisode = "", string NumEpisode = "0", int IDSaison = 0, int Duree = 0, int IDSerie = 0, string Diffusion = "")
        {
            this.IDEpisode = IDEpisode;
            this.TitreEpisode = TitreEpisode;
            this.NumEpisode = NumEpisode;
            this.IDSaison = IDSaison;
            this.Duree = Duree;
            this.IDSerie = IDSerie;
            this.Diffusion = Diffusion;
        }

        public override string ToString()
        {
            return IDSaison + "x" + NumEpisode + " " + TitreEpisode + " (" + Diffusion + ") Durée : " + Duree;
        }

    }
}
